package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 注册Vo
 *
 * @author houjianhui
 */
public class SignUpVo {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^(1[0-9][0-9]\\d{8})$", message = "手机号格式错误")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    private String code;
    private String openid;
    private String uuid;

    @NotBlank(message = "用户类型不能为空")
    private String usertype;

    @NotBlank(message = "密码不能为空")
    private String password;
    private String invitedcode;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getInvitedcode() {
        return invitedcode;
    }

    public void setInvitedcode(String invitedcode) {
        this.invitedcode = invitedcode;
    }

    @Override
    public String toString() {
        return "SignUpVo [phone=" + phone + ", code=" + code + ", openid=" + openid + ", uuid="
                + uuid + ", usertype=" + usertype + ", password=" + password + ", invitedcode=" + invitedcode + "]";
    }

}
